//
//  PresidentDetailController.h
//  Nav
//
//  Created by KaiKai on 11-8-10.
//  Copyright 2011年 SDS. All rights reserved.
//

#define KNumberOfEditableRows	4
#define KNameRowIndex			0
#define KFromYearRowIndex		1
#define KToYearRowIndex			2
#define KPartyIndex				3

#define KLabelTag				4096

@class President;

@interface PresidentDetailController : UITableViewController
<UITableViewDelegate, UITableViewDataSource, UITextFieldDelegate>
{
	President *president;
	NSArray *fieldLabels;
	NSMutableDictionary *tempValues;
	UITextField *textFieldBeingEdited;
}

@property (nonatomic, retain) President *president;
@property (nonatomic, retain) NSArray *fieldLabels;
@property (nonatomic, retain) NSMutableDictionary *tempValues;
@property (nonatomic, retain) UITextField *textFieldBeingEdited;

- (IBAction)cancel:(id)sender;
- (IBAction)save:(id)sender;
- (IBAction)textFieldDone:(id)sender;

@end
